package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class AdvertisersExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public AdvertisersExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAdnoIsNull() {
            addCriterion("adno is null");
            return (Criteria) this;
        }

        public Criteria andAdnoIsNotNull() {
            addCriterion("adno is not null");
            return (Criteria) this;
        }

        public Criteria andAdnoEqualTo(String value) {
            addCriterion("adno =", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotEqualTo(String value) {
            addCriterion("adno <>", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoGreaterThan(String value) {
            addCriterion("adno >", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoGreaterThanOrEqualTo(String value) {
            addCriterion("adno >=", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLessThan(String value) {
            addCriterion("adno <", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLessThanOrEqualTo(String value) {
            addCriterion("adno <=", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLike(String value) {
            addCriterion("adno like", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotLike(String value) {
            addCriterion("adno not like", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoIn(List<String> values) {
            addCriterion("adno in", values, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotIn(List<String> values) {
            addCriterion("adno not in", values, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoBetween(String value1, String value2) {
            addCriterion("adno between", value1, value2, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotBetween(String value1, String value2) {
            addCriterion("adno not between", value1, value2, "adno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAdnameIsNull() {
            addCriterion("adName is null");
            return (Criteria) this;
        }

        public Criteria andAdnameIsNotNull() {
            addCriterion("adName is not null");
            return (Criteria) this;
        }

        public Criteria andAdnameEqualTo(String value) {
            addCriterion("adName =", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameNotEqualTo(String value) {
            addCriterion("adName <>", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameGreaterThan(String value) {
            addCriterion("adName >", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameGreaterThanOrEqualTo(String value) {
            addCriterion("adName >=", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameLessThan(String value) {
            addCriterion("adName <", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameLessThanOrEqualTo(String value) {
            addCriterion("adName <=", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameLike(String value) {
            addCriterion("adName like", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameNotLike(String value) {
            addCriterion("adName not like", value, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameIn(List<String> values) {
            addCriterion("adName in", values, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameNotIn(List<String> values) {
            addCriterion("adName not in", values, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameBetween(String value1, String value2) {
            addCriterion("adName between", value1, value2, "adname");
            return (Criteria) this;
        }

        public Criteria andAdnameNotBetween(String value1, String value2) {
            addCriterion("adName not between", value1, value2, "adname");
            return (Criteria) this;
        }

        public Criteria andAdidIsNull() {
            addCriterion("adId is null");
            return (Criteria) this;
        }

        public Criteria andAdidIsNotNull() {
            addCriterion("adId is not null");
            return (Criteria) this;
        }

        public Criteria andAdidEqualTo(String value) {
            addCriterion("adId =", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidNotEqualTo(String value) {
            addCriterion("adId <>", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidGreaterThan(String value) {
            addCriterion("adId >", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidGreaterThanOrEqualTo(String value) {
            addCriterion("adId >=", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidLessThan(String value) {
            addCriterion("adId <", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidLessThanOrEqualTo(String value) {
            addCriterion("adId <=", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidLike(String value) {
            addCriterion("adId like", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidNotLike(String value) {
            addCriterion("adId not like", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidIn(List<String> values) {
            addCriterion("adId in", values, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidNotIn(List<String> values) {
            addCriterion("adId not in", values, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidBetween(String value1, String value2) {
            addCriterion("adId between", value1, value2, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidNotBetween(String value1, String value2) {
            addCriterion("adId not between", value1, value2, "adid");
            return (Criteria) this;
        }

        public Criteria andAdpwdIsNull() {
            addCriterion("adPwd is null");
            return (Criteria) this;
        }

        public Criteria andAdpwdIsNotNull() {
            addCriterion("adPwd is not null");
            return (Criteria) this;
        }

        public Criteria andAdpwdEqualTo(String value) {
            addCriterion("adPwd =", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdNotEqualTo(String value) {
            addCriterion("adPwd <>", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdGreaterThan(String value) {
            addCriterion("adPwd >", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdGreaterThanOrEqualTo(String value) {
            addCriterion("adPwd >=", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdLessThan(String value) {
            addCriterion("adPwd <", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdLessThanOrEqualTo(String value) {
            addCriterion("adPwd <=", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdLike(String value) {
            addCriterion("adPwd like", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdNotLike(String value) {
            addCriterion("adPwd not like", value, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdIn(List<String> values) {
            addCriterion("adPwd in", values, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdNotIn(List<String> values) {
            addCriterion("adPwd not in", values, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdBetween(String value1, String value2) {
            addCriterion("adPwd between", value1, value2, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdpwdNotBetween(String value1, String value2) {
            addCriterion("adPwd not between", value1, value2, "adpwd");
            return (Criteria) this;
        }

        public Criteria andAdstateIsNull() {
            addCriterion("adState is null");
            return (Criteria) this;
        }

        public Criteria andAdstateIsNotNull() {
            addCriterion("adState is not null");
            return (Criteria) this;
        }

        public Criteria andAdstateEqualTo(Integer value) {
            addCriterion("adState =", value, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateNotEqualTo(Integer value) {
            addCriterion("adState <>", value, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateGreaterThan(Integer value) {
            addCriterion("adState >", value, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("adState >=", value, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateLessThan(Integer value) {
            addCriterion("adState <", value, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateLessThanOrEqualTo(Integer value) {
            addCriterion("adState <=", value, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateIn(List<Integer> values) {
            addCriterion("adState in", values, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateNotIn(List<Integer> values) {
            addCriterion("adState not in", values, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateBetween(Integer value1, Integer value2) {
            addCriterion("adState between", value1, value2, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdstateNotBetween(Integer value1, Integer value2) {
            addCriterion("adState not between", value1, value2, "adstate");
            return (Criteria) this;
        }

        public Criteria andAdphoneIsNull() {
            addCriterion("adPhone is null");
            return (Criteria) this;
        }

        public Criteria andAdphoneIsNotNull() {
            addCriterion("adPhone is not null");
            return (Criteria) this;
        }

        public Criteria andAdphoneEqualTo(String value) {
            addCriterion("adPhone =", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneNotEqualTo(String value) {
            addCriterion("adPhone <>", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneGreaterThan(String value) {
            addCriterion("adPhone >", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneGreaterThanOrEqualTo(String value) {
            addCriterion("adPhone >=", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneLessThan(String value) {
            addCriterion("adPhone <", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneLessThanOrEqualTo(String value) {
            addCriterion("adPhone <=", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneLike(String value) {
            addCriterion("adPhone like", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneNotLike(String value) {
            addCriterion("adPhone not like", value, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneIn(List<String> values) {
            addCriterion("adPhone in", values, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneNotIn(List<String> values) {
            addCriterion("adPhone not in", values, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneBetween(String value1, String value2) {
            addCriterion("adPhone between", value1, value2, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdphoneNotBetween(String value1, String value2) {
            addCriterion("adPhone not between", value1, value2, "adphone");
            return (Criteria) this;
        }

        public Criteria andAdimgIsNull() {
            addCriterion("adImg is null");
            return (Criteria) this;
        }

        public Criteria andAdimgIsNotNull() {
            addCriterion("adImg is not null");
            return (Criteria) this;
        }

        public Criteria andAdimgEqualTo(String value) {
            addCriterion("adImg =", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgNotEqualTo(String value) {
            addCriterion("adImg <>", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgGreaterThan(String value) {
            addCriterion("adImg >", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgGreaterThanOrEqualTo(String value) {
            addCriterion("adImg >=", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgLessThan(String value) {
            addCriterion("adImg <", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgLessThanOrEqualTo(String value) {
            addCriterion("adImg <=", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgLike(String value) {
            addCriterion("adImg like", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgNotLike(String value) {
            addCriterion("adImg not like", value, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgIn(List<String> values) {
            addCriterion("adImg in", values, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgNotIn(List<String> values) {
            addCriterion("adImg not in", values, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgBetween(String value1, String value2) {
            addCriterion("adImg between", value1, value2, "adimg");
            return (Criteria) this;
        }

        public Criteria andAdimgNotBetween(String value1, String value2) {
            addCriterion("adImg not between", value1, value2, "adimg");
            return (Criteria) this;
        }

        public Criteria andAddescribeIsNull() {
            addCriterion("adDescribe is null");
            return (Criteria) this;
        }

        public Criteria andAddescribeIsNotNull() {
            addCriterion("adDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andAddescribeEqualTo(String value) {
            addCriterion("adDescribe =", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeNotEqualTo(String value) {
            addCriterion("adDescribe <>", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeGreaterThan(String value) {
            addCriterion("adDescribe >", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeGreaterThanOrEqualTo(String value) {
            addCriterion("adDescribe >=", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeLessThan(String value) {
            addCriterion("adDescribe <", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeLessThanOrEqualTo(String value) {
            addCriterion("adDescribe <=", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeLike(String value) {
            addCriterion("adDescribe like", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeNotLike(String value) {
            addCriterion("adDescribe not like", value, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeIn(List<String> values) {
            addCriterion("adDescribe in", values, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeNotIn(List<String> values) {
            addCriterion("adDescribe not in", values, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeBetween(String value1, String value2) {
            addCriterion("adDescribe between", value1, value2, "addescribe");
            return (Criteria) this;
        }

        public Criteria andAddescribeNotBetween(String value1, String value2) {
            addCriterion("adDescribe not between", value1, value2, "addescribe");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}